package com.wanmait.baohan.service.Impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.baohan.mapper.VehicleAccountMapper;
import com.wanmait.baohan.pojo.VehicleAccount;
import com.wanmait.baohan.service.VehicleAccountService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class VehicleAccountServiceImpl implements VehicleAccountService {
    @Resource
    private VehicleAccountMapper vehicleAccountMapper;
    @Override
    public void insert(VehicleAccount object) {
        vehicleAccountMapper.insert(object);
    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(VehicleAccount object) {
        vehicleAccountMapper.updateByPrimaryKey(object);
    }

    @Override
    public VehicleAccount findById(Integer id) {
        return null;
    }

    @Override
    public List<VehicleAccount> findAll() {
        return null;
    }

    @Override
    public List<VehicleAccount> findAll(VehicleAccount object) {
        return null;
    }

    @Override
    public PageInfo<VehicleAccount> findPage(int pageNum) {
        return null;
    }

    @Override
    public PageInfo<VehicleAccount> findPage() {
        return null;
    }

    @Override
    public PageInfo<VehicleAccount> findPage(int pageNum, VehicleAccount object) {
        return null;
    }

    @Override
    public PageInfo<VehicleAccount> findPage(VehicleAccount object) {
        return null;
    }

    @Override
    public List<VehicleAccount> findListByid(Integer id) {
        return vehicleAccountMapper.findAllListById(id);
    }
}
